const InspireCloud = require('@byteinspire/js-sdk')

//上传文件sdk
const serviceId = 'qcljo8'; 
const fileUploadToken = 'f1a0e56d-08af-4cdd-8e26-c0c0882f019b';
const inspirecloud = new InspireCloud({ serviceId });

//上传图片SDK 参数文件名 文件File对象
export const uploadImage = async (filename,file)=>{
    let data = await inspirecloud.file.upload(filename, file, { token: fileUploadToken })
    return Promise.resolve(data)
}
